package com.kang.service;

import java.util.List;
import com.kang.pojo.InventoryLocation;
import com.vonechina.entity.page.InventoryLocationPage;

/**
 * 库位服务层
 * 
 * @author zs614
 *
 */
public interface InventoryLocationService {
	/**
	 * 分页查询库位
	 * 
	 * @param page
	 *            搜索条件实体类
	 * @return
	 */
	public List<InventoryLocation> listInventoryLocation(InventoryLocationPage page);

	/**
	 * 删除下级库位
	 * 
	 * @param inventorylocationid
	 *            库位ID
	 * @return
	 */
	public int deletenext(Integer inventorylocationid);

	/**
	 * 查询下级库位
	 * 
	 * @param inventorylocationid
	 *            库位ID
	 * @return
	 */
	public List<InventoryLocation> listInventoryLocationById(Integer inventorylocationid);

	/**
	 * 删除库位
	 * 
	 * @param inventorylocationid
	 *            库位ID
	 * @return
	 */
	public int deleteByPrimaryKey(Integer inventorylocationid);

	/**
	 * 新增库位
	 * 
	 * @param record
	 *            库位实体类
	 * @return
	 */
	public int insertSelective(InventoryLocation record);

	/**
	 * 通过主键查询库位
	 * 
	 * @param inventorylocationid
	 *            库位ID
	 * @return
	 */
	public InventoryLocation selectByPrimaryKey(Integer inventorylocationid);

	/**
	 * 更新库位
	 * 
	 * @param record
	 *            库位实体类
	 * @return
	 */
	public int updateByPrimaryKeySelective(InventoryLocation record);

	/**
	 * 生成库位编号
	 * 
	 * @return
	 */
	public String generatoCode();

}
